package com.lecampus.businessCampus_moments.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2021-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ArticleComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;


    private String content;

    private Long likeNum;

    @TableLogic
    private Integer deleted;

    @NonNull
    @TableField(fill = FieldFill.INSERT)
    @JsonProperty("create_time")
    private Date createTime;

    @NonNull
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonProperty("update_time")
    private Date updateTime;

    @NonNull
    private String userId;

    @NonNull
    private String articleId;


}
